<?php  
  
namespace App\Http\Controllers;  
  
use App\Http\Controllers\Controller;  
use Dingo\Api\Routing\Helpers;  
  
  
class BaseController extends Controller  
{  
    use Helpers;  
  
    /**** 
     * BaseController constructor. 
     */  
    public function __construct()  
    {  
  
    }  

    public function returnMsg($code, $message, $data=''){
        $result = ['status_code'=>$code,'message'=>$message,'data'=>$data];
        return $result;
    }
}  